#if 0
uint32_t HisiHlgOutgamma_128LutB[128] =
{
    0        ,
    0    ,
    0    ,
    0    ,
    0    ,
    0    ,
    0    ,
    0    ,
    0    ,
    1    ,
    1    ,
    1    ,
    2    ,
    2    ,
    3    ,
    3    ,
    4    ,
    5    ,
    6    ,
    8    ,
    9    ,
    11   ,
    13   ,
    15   ,
    18   ,
    21   ,
    25   ,
    29   ,
    33   ,
    38   ,
    43   ,
    50   ,
    57   ,
    65   ,
    73   ,
    83   ,
    94   ,
    106  ,
    119  ,
    134  ,
    150  ,
    168  ,
    187  ,
    209  ,
    233  ,
    260  ,
    289  ,
    320  ,
    355  ,
    394  ,
    436  ,
    482  ,
    532  ,
    587  ,
    648  ,
    714  ,
    786  ,
    864  ,
    950  ,
    1043 ,
    1145 ,
    1256 ,
    1377 ,
    1508 ,
    1651 ,
    1807 ,
    1976 ,
    2160 ,
    2360 ,
    2577 ,
    2813 ,
    3069 ,
    3348 ,
    3649 ,
    3977 ,
    4332 ,
    4718 ,
    5136 ,
    5601 ,
    6069 ,
    6552 ,
    7052 ,
    7570 ,
    8106 ,
    8660 ,
    9234 ,
    9828 ,
    10443,
    11080,
    11738,
    12420,
    13126,
    13857,
    14613,
    15397,
    16208,
    17047,
    17917,
    18818,
    19750,
    20716,
    21716,
    22752,
    23826,
    24938,
    26090,
    27283,
    28520,
    29802,
    31130,
    32507,
    33934,
    35413,
    36947,
    38537,
    40186,
    41896,
    43669,
    45508,
    47417,
    49396,
    51451,
    53581,
    55794,
    58089,
    60475,
    62943,
    65535,
};

uint32_t HisiHlgInHdr10Out_Outgamma_128LutB[128] =
{
    0   ,
    19   ,
    54   ,
    105  ,
    168  ,
    243  ,
    329  ,
    425  ,
    531  ,
    646  ,
    769  ,
    901  ,
    1042 ,
    1190 ,
    1347 ,
    1512 ,
    1684 ,
    1863 ,
    2050 ,
    2244 ,
    2444 ,
    2651 ,
    2865 ,
    3085 ,
    3312 ,
    3545 ,
    3784 ,
    4029 ,
    4281 ,
    4538 ,
    4801 ,
    5070 ,
    5345 ,
    5625 ,
    5912 ,
    6204 ,
    6501 ,
    6803 ,
    7111 ,
    7424 ,
    7742 ,
    8065 ,
    8393 ,
    8726 ,
    9064 ,
    9407 ,
    9755 ,
    10107,
    10464,
    10826,
    11193,
    11563,
    11939,
    12319,
    12703,
    13092,
    13484,
    13881,
    14282,
    14687,
    15096,
    15509,
    15926,
    16347,
    16772,
    17201,
    17633,
    18069,
    18508,
    18952,
    19398,
    19848,
    20302,
    20759,
    21219,
    21683,
    22150,
    22620,
    23093,
    23569,
    24049,
    24531,
    25017,
    25505,
    25996,
    26490,
    26987,
    27487,
    27989,
    28495,
    29002,
    29512,
    30025,
    30541,
    31059,
    31579,
    32102,
    32627,
    33154,
    33684,
    34215,
    34750,
    35286,
    35824,
    36364,
    36907,
    37451,
    37997,
    38545,
    39095,
    39647,
    40201,
    40756,
    41313,
    41872,
    42432,
    42994,
    43557,
    44122,
    44689,
    45256,
    45826,
    46396,
    46968,
    47541,
    48116,
    48690,
    49272,



};

#else
uint32_t HisiHlgOutgamma_128LutB[128] =
{
    0u,
    0u,
    0u,
    0u,
    0u,
    0u,
    0u,
    0u,
    0u,
    1u,
    1u,
    1u,
    2u,
    2u,
    3u,
    3u,
    4u,
    5u,
    6u,
    8u,
    9u,
    11u,
    13u,
    15u,
    18u,
    21u,
    25u,
    29u,
    33u,
    38u,
    43u,
    50u,
    57u,
    65u,
    73u,
    83u,
    94u,
    106u,
    119u,
    134u,
    150u,
    168u,
    187u,
    209u,
    233u,
    260u,
    289u,
    320u,
    355u,
    394u,
    436u,
    482u,
    532u,
    587u,
    648u,
    714u,
    786u,
    864u,
    950u,
    1043u,
    1145u,
    1256u,
    1377u,
    1508u,
    1651u,
    1807u,
    1976u,
    2160u,
    2360u,
    2577u,
    2813u,
    3069u,
    3348u,
    3649u,
    3977u,
    4332u,
    4718u,
    5136u,
    5601u,
    6069u,
    6552u,
    7052u,
    7570u,
    8106u,
    8660u,
    9234u,
    9828u,
    10443u,
    11080u,
    11738u,
    12420u,
    13126u,
    13857u,
    14613u,
    15397u,
    16208u,
    17047u,
    17917u,
    18818u,
    19750u,
    20716u,
    21716u,
    22752u,
    23826u,
    24938u,
    26090u,
    27283u,
    28520u,
    29802u,
    31130u,
    32507u,
    33934u,
    35413u,
    36947u,
    38537u,
    40186u,
    41896u,
    43669u,
    45508u,
    47417u,
    49396u,
    51451u,
    53581u,
    55794u,
    58089u,
    60475u,
    62943u,
    65535u,
};

uint32_t HisiHlgInHdr10Out_Outgamma_128LutB[128] =
{
    0u,
    19u,
    54u,
    105u,
    168u,
    243u,
    329u,
    425u,
    531u,
    646u,
    769u,
    901u,
    1042u,
    1190u,
    1347u,
    1512u,
    1684u,
    1863u,
    2050u,
    2244u,
    2444u,
    2651u,
    2865u,
    3085u,
    3312u,
    3545u,
    3784u,
    4029u,
    4281u,
    4538u,
    4801u,
    5070u,
    5345u,
    5625u,
    5912u,
    6204u,
    6501u,
    6803u,
    7111u,
    7424u,
    7742u,
    8065u,
    8393u,
    8726u,
    9064u,
    9407u,
    9755u,
    10107u,
    10464u,
    10826u,
    11193u,
    11563u,
    11939u,
    12319u,
    12703u,
    13092u,
    13484u,
    13881u,
    14282u,
    14687u,
    15096u,
    15509u,
    15926u,
    16347u,
    16772u,
    17201u,
    17633u,
    18069u,
    18508u,
    18952u,
    19398u,
    19848u,
    20302u,
    20759u,
    21219u,
    21683u,
    22150u,
    22620u,
    23093u,
    23569u,
    24049u,
    24531u,
    25017u,
    25505u,
    25996u,
    26490u,
    26987u,
    27487u,
    27989u,
    28495u,
    29002u,
    29512u,
    30025u,
    30541u,
    31059u,
    31579u,
    32102u,
    32627u,
    33154u,
    33684u,
    34215u,
    34750u,
    35286u,
    35824u,
    36364u,
    36907u,
    37451u,
    37997u,
    38545u,
    39095u,
    39647u,
    40201u,
    40756u,
    41313u,
    41872u,
    42432u,
    42994u,
    43557u,
    44122u,
    44689u,
    45256u,
    45826u,
    46396u,
    46968u,
    47541u,
    48116u,
    48690u,
    49272u,
};

#endif

